gsk: Use the appropriate GLSL version
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 1 Nov 2016 15:00:31 +0000 (15:00 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 1 Nov 2016 15:00:31 +0000 (15:00 +0000)
commit02c615cc34e51a3b5661b79372f09749b845e864
tree9ec8d39738aebda37d999580d8ace4c09e2efc98
parent3c1f72671a0794403e0ef399b8cf700c152dd567
gsk: Use the appropriate GLSL version

The GLSL versions are:

  OpenGL 2.1: #version 110
  OpenGL 3.0: #version 130
  OpenGL 3.2: #version 150

  OpenGLES 2.0: #version 100
  OpenGLES 3.0: #version 300 es

So we need to check the version of the GdkGLContext if we want use the
appropriate version, especially for legacy OpenGL contexts, which can be
both 3.x and 2.x.
gsk/gskglrenderer.c